package com.hethongviet.vending.model;

public class Box extends Model
{
	private int id = 0;
	private String command = "";
	private String productCode = "";
	private int productAmount = 0;
	private int productPrice = 0;
	private long dateUpdated = -1;
	
	private String name = "";
	private int active = 0;

	public Box()
	{
	}

	public Box(int id, String command, String productCode, int productAmount,
			int productPrice, int machineId, String name, int active)
	{
		this.id = id;
		this.command = command;
		this.productAmount = productAmount;
		this.productCode = productCode;
		this.name = name;
		this.active = active;
		this.productPrice = productPrice;
	}

	public boolean hasProducts()
	{
		return productCode.equalsIgnoreCase("0") && productPrice == 0;
	}
	
	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getCommand()
	{
		return command;
	}

	public void setCommand(String command)
	{
		this.command = command;
	}

	public String getProductCode()
	{
		return productCode;
	}

	public void setProductCode(String productCode)
	{
		this.productCode = productCode;
	}

	public int getProductAmount()
	{
		return productAmount;
	}

	public void setProductAmount(int productAmount)
	{
		this.productAmount = productAmount;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public int getActive()
	{
		return active;
	}

	public void setActive(int active)
	{
		this.active = active;
	}

	public int getProductPrice()
	{
		return productPrice;
	}

	public void setProductPrice(int productPrice)
	{
		this.productPrice = productPrice;
	}

	public long getDateUpdated()
	{
		return dateUpdated;
	}

	public void setDateUpdated(long dateUpdated)
	{
		this.dateUpdated = dateUpdated;
	}

}
